# import yagmail,logging
#
#
# def log_set():
#     logging.basicConfig(filename='log.txt',filemode='w+',level=logging.DEBUG,format='%(levelname)s-%(asctime)s-%(message)s')
#
# def email(filename):
#     send=yagmail.SMTP(user="1441688225@qq.com",password='subvcobnwlujggee',host='smtp.qq.com')
#     send.send('1441688225@qq.com',subject='数据驱动',attachments=filename)

import yagmail,logging

def log_set():
    logging.basicConfig(filename='log.txt',filemode='w+',level=logging.DEBUG,format='%(levelname)s-%(asctime)s-%(message)s')

def email(filename):
    send=yagmail.SMTP(user='1441688225@qq.com',password='subvcobnwlujggee',host='stmp.qq.com')
    send.send(to='1441688225@qq.com',subject='数据驱动',attachments=filename)

